package logic;

import java_cup.runtime.*;
import java.io.*;

public class Main{
    static boolean do_debug_parse=false;
    static public void main(String[]args)throws java.io.IOException{
	parser parser_obj = new parser(new analex(new FileReader(args[0])));
	Symbol parse_tree = null;
	try{
	    if(do_debug_parse)
		parse_tree=parser_obj.debug_parse();
	    else
		parse_tree=parser_obj.parse();
	}catch(Exception e) {
	    System.out.println("ERROR");
	}
	finally{}
	ConDiaCClass cdcAnalisis=Singleton.getInstance();
	/*	System.out.println("EOF");*/
	/* System.out.println(cdcAnalisis.getEBNFs().get(0).getConway("all")); */
	/*List<String> results=cdcAnalisis.getConway("ebnfa","all");
	for (int i=0;i<results.size();i++)
	    System.out.println(results.get(i));
	
	cdcAnalisis.GLC2EBNF("b");
	System.out.println(cdcAnalisis.toString());
	*/
	cdcAnalisis.runOperations();
    }
}
